home *** CD-ROM | disk | FTP | other *** search
- Path: news.infi.net!usenet
- From: gcfiorine@hamlet.uncg.edu (glenn)
- Newsgroups: comp.lang.c++
- Subject: Re: Help - ERROR: Use C++ with iostream.h - ???
- Date: Tue, 09 Apr 1996 19:31:18 GMT
- Organization: InfiNet
- Message-ID: <4kedrk$fv@nw002.infi.net>
- References: <31671633.33DD@inforamp.net> <N.040896.100149.11@ix.netcom.com> <milodDpK638.23E@netcom.com>
- NNTP-Posting-Host: pa3dsp18.nr.infi.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- I used to have the same problem with my school programs. The problem
- might be in the setup of the program. I don't know what compiler you
- are using, but you need to specify where your lib files and include
- files reside in your computer. If you are running a project from the
- school computer, it could be in a different directory.
- Glenn
- milod@netcom.com (John DiCamillo) wrote:
-
- >>> When I run a program I brought from schoo, that is properly formatted and
- >>> runs on the UNIX/PowerPC system there, I get an error like "Use C++ with
- >>> iostream.h". I even renamed the first character in the header file from
- >>> an upper case "I" to a lower case "i". Any ideas?
-
- >It probably means that your C++ compiler "thinks" its
- >compiling a C program, not a C++ program. Some compilers
- >are picky about the filename extensions:
-
- > use *.cpp for C++ source files
- > use *.hpp for C++ header files
-
- >Note: I'm not saying that files "should" be named a
- >certain way, only that some compilers may insist on it.
-
- >Also, there is usually a compiler setting to force the
- >compiler to treat all input files as either C or C++
- >source code. Try the help system to find the appropriate
- >incantation.
-
- >--
- > ciao,
- > milo
- >================================================================
- > John DiCamillo Fiery the Angels Fell
- > milod@netcom.com Deep thunder rode around their shores
-
-
-